//初始化
function marQueeinitial(){
    var marqueeItem_hotimagearticle =document.getElementById("marqueeItem_hotimagearticle");
    if(marqueeItem_hotimagearticle!=null){
	    marqueeItem_hotimagearticle.innerHTML+=marqueeItem_hotimagearticle.innerHTML;
	    marquee_hotimagearticle();
	}
}

var timeOuthotimagearticle;

//滚动
function marquee_hotimagearticle(){
    var leftScroll=document.getElementById("marqueePanel_hotimagearticle").scrollLeft;
    var offsetWidth=document.getElementById("marqueeItem_hotimagearticle").offsetWidth;
	if(parseInt(leftScroll)<parseInt(offsetWidth)/2){
		document.getElementById("marqueePanel_hotimagearticle").scrollLeft++;
	}else{
		document.getElementById("marqueePanel_hotimagearticle").scrollLeft=0;
	}
	timeOuthotimagearticle=setTimeout("marquee_hotimagearticle()",50);
}

//开始
function startMarquee_hotimagearticle(){
    timeOuthotimagearticle=setTimeout("marquee_hotimagearticle()",50);
}

//暂停
function stopMarquee_hotimagearticle(){
    clearTimeout(timeOuthotimagearticle);
}

marQueeinitial();
